/**
 * @title: TestController
 * @projectName demo1
 * @Description TODO
 * @Author
 * @Date 2023/2/19 20:10
 */
package com.example.demo1.controller;

import com.example.demo1.entity.StudentDTO;
import com.example.demo1.service.TestService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
public class TestController {
    @Autowired
    TestService testService;
    @RequestMapping(value = "/getStudent")
    public StudentDTO getStudent(Integer id){
        StudentDTO student = testService.getStudent(id);
        return student;
    }
}
